<template>
  <div>
    <h1>{{ str }}</h1>
    <button @click="fn">情势反转</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      str: '情势反转'
    }
  },
  methods: {
    fn() {
      this.str = this.str.split('').reverse().join('')
    }
  }
}
</script>

<style></style>
